//路由路径配置及路由独享守卫处
export default [
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        name:'home',
        component:()=>import('./../pages/Home.vue'),
        meta:{show:true,flag:0}
    },
    {
        path:'/subject',
        name:'subject',
        component:()=>import('./../pages/Subject.vue'),
        meta:{show:true,flag:1}
    },
    {

        path:'/cart',
        name:'cart',
        component:()=>import('./../pages/Cart.vue'),
        meta:{show:true,flag:3}
    },
    {

        path:'/goods/:id',
        name:'goods',
        component:()=>import('./../pages/Goods.vue'),
        meta:{show:false,flag:2}
    },
    {
        path:'/user',
        name:'user',
        component:()=>import('./../pages/User.vue'),
        meta:{show:true,flag:4}
    },
    {
        path:'/classification/:name?',
        name:'classification',
        component:()=>import('../pages/Classification.vue'),
        meta:{show:true,flag:2}
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('../pages/Login.vue'),
        meta:{show:false,flag:0}
    },
    {
        path:'/product/:id?',
        name:'product',
        component:()=>import('./../pages/product.vue'),
        meta:{show:true,flag:2}
    },
    {
        path:'/address',
        name:'address',
        component:()=>import('./../pages/Address.vue'),
        meta:{show:false,flag:0}
    },
    {
        path:'/addressEdit',
        name:'addressEdit',
        component:()=>import('./../pages/AddressEdit.vue'),
        meta:{show:false,flag:0}
     },
     {
         path:'/search/:keyword?',
         name:'search',
        component:()=>import('../pages/Search.vue'),
        meta:{show:false,flag:0}
     }
]